import request from '@/utils/request'

export default {
  getVideo(videoId) {
    return request({
      url: `/edu/video/getVideo/${videoId}`,
      method: 'get'
    })
  },
  getVideoForm(videoId) {
    return request({
      url: `/edu/video/getVideoForm/${videoId}`,
      method: 'get'
    })
  },
  addVideo(video) {
    return request({
      url: `/edu/video/addVideo`,
      method: 'post',
      data: video
    })
  },
  updateVideo(video) {
    return request({
      url: `/edu/video/updateVideo`,
      method: 'post',
      data: video
    })
  },
  deleteVideo(videoId) {
    return request({
      url: `/edu/video/deleteVideo/${videoId}`,
      method: 'post'
    })
  },
}
